import time
import unittest

import pytest
from selenium import webdriver
from Page import Page
from page1 import Page1
from Page2 import Page2
from Page3 import Page3
class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
        self.driver.get('http://10.59.9.12:7001/')

    def tearDown(self):
        time.sleep(3)
        self.driver.quit()

    def test_A3Mall_01(self):
        po = Page(self.driver)
        po.test_A3mall_01()
        po1 = Page1(self.driver)
        po1.test_A3Mall_02()
        po2 = Page2(self.driver)
        po2.add_cart()
        po3 = Page3(self.driver)
        po3.A3mall_sp()
